package com.lhf.azkaban.springbatch.example.controller;

import com.lhf.azkaban.springbatch.AzkabanspringbatchApplication;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:95780
 * @Date: 16:16 2019/11/20
 * @Description: 批量测试Controller
 *
 *
 */
@RestController
@RequestMapping("batch")
public class BatchController {


    private static final Logger logger = LogManager.getLogger(BatchController.class);

    @RequestMapping(value = "/startJob")
    public String startJob(@RequestParam(value = "jobName") String jobName) {
        logger.info("jobName", jobName);
        return jobName + "";
    }
    @RequestMapping(value = "/getJobMemLog")
    public String getJobMemLog(@RequestParam(value = "id") Long id){

        return "";
    }
}
